//
//  TSCConstants.m
//  Tsc_IOS
//
//  Created by Rio on 15-5-5.
//  Copyright (c) 2015年 idream. All rights reserved.
//

#import "TSCConstants.h"

#pragma mark ERR
NSString * const ERR_PHP_MAILER_NONE_EXIST_EMAIL_ADDRESS = @"SMTP Error: The following recipients failed:"; // 如果邮箱地址不存在，PHP返回的错误信息

#pragma mark UD

// Activity跳转相关
NSInteger const UD_ACTION_EXIT_APP = 1; // 退出APP
NSInteger const UD_ACTION_RE_LOGIN = 2; // 重新登录，比如点击了“退出”按钮
NSString * const UD_IS_FORCE_LOGOUT = @"UD_IS_FORCE_LOGOUT"; // 是否为被迫下线
// user相关与server同步
//
NSString * const UD_USER_ID = @"UD_USER_ID";
NSString * const UD_USER_NAME = @"UD_USER_NAME";
NSString * const UD_USER_EMAIL = @"UD_USER_EMAIL";
NSString * const UD_USER_NAME_OR_EMAIL = @"UD_USER_NAME_OR_EMAIL";
//
NSString * const UD_LOGIN_KEY = @"UD_LOGIN_KEY";
//
NSString * const UD_USER_ROLE = @"UD_USER_ROLE";
NSString * const UD_USER_CITY_ID = @"UD_USER_CITY_ID";
NSString * const UD_GUIDE_SHOP_ID = @"UD_GUIDE_SHOP_ID";
NSString * const UD_GUIDE_SHOP_NAME = @"UD_GUIDE_SHOP_NAME";
NSString * const UD_USER_TEL = @"UD_USER_TEL";
//
NSString * const UD_GUIDE_GOODS_CLASS_IDS = @"UD_GUIDE_GOODS_CLASS_IDS";
NSString * const UD_GUIDE_IS_MANAGER = @"UD_GUIDE_IS_MANAGER";
NSString * const UD_USER_EMAIL_VALID = @"UD_USER_EMAIL_VALID";
// 其他设置项
NSString * const UD_IS_RECEIVE_MSG = @"IS_RECEIVE_MSG"; // 是否接收消息
NSString * const UD_IS_NOTIFY_MSG = @"IS_NOTIFY_MSG"; // 当接收到消息时，是否在通知栏进行提示
NSString * const UD_IS_RECEIVE_WANT_BUY_IN_COUNTRY = @"IS_RECEIVE_WANT_BUY_IN_COUNTRY"; // 是否接受消息全国范围内的求购消息
NSString * const UD_LAST_TIME_MS_WHEN_CHECKING_APP_UPDATE = @"LAST_TIME_MS_WHEN_CHECKING_APP_UPDATE"; // 最近一次检测更新时间
NSString * const UD_LAST_TIME_SETTING = @"LAST_TIME_SETTING"; // 最近一次设置时间
NSString * const UD_HAS_APP_BEEN_OPENED_BEFORE = @"HAS_APP_BEEN_OPENED_BEFORE";// 第一次开启APP后就永远设置为true。诸如封面故事显示与否就依照此位进行判断
NSString * const UD_HAS_CUSTOMER_OPENED_APP_BEFORE = @"HAS_CUSTOMER_OPENED_APP_BEFORE"; // 用来判断是否需要在main界面显示帮助图片
NSString * const UD_HAS_GUIDE_OPENED_APP_BEFORE = @"HAS_GUIDE_OPENED_APP_BEFORE"; // 用来判断是否需要在main界面显示帮助图片
// BAE相关
NSString * const UD_BAE_USER_ID = @"bae_sp_user_id";
NSString * const UD_BAE_CHANNEL_ID = @"bae_sp_channel_id";
NSString * const UD_BAE_NOW_TAG_STR = @"bae_sp_now_tag_str";// 当前设备所有绑定的tag集合的字符串
NSString * const UD_BAE_BIND_FLAG = @"bae_sp_bind_flag";
NSString * const UD_BAE_LOG_TEXT = @"bae_sp_log_text";
NSString * const UD_BAE_WHO_IS_LOGINING = @"bae_sp_who_is_logining"; // 登录设备随机数
NSString * const UD_BAE_LAST_LOGIN_TIME = @"bae_sp_last_login_time"; // 最近一次登录时间，由server返回
NSString * const UD_BAE_NEED_REBIND_TAG_ON_DEVICE = @"bae_sp_need_rebind_tag_on_device";// 当在该设备上重新登录时，且在BAE绑定成功后，是否继续后续流程：重新在该设备上绑定tag

#pragma mark BAE

// 以下为所有的tag前缀
NSString * const BAE_TAG_PREFIX_GOODS_CLASS = @"gc_"; // 商品分类tag的前缀
// 以下为所有的自定义广播组
NSString * const BAE_TAG_USER_ROLE_CUSTOMER = @"sys_customer";
NSString * const BAE_TAG_USER_ROLE_GUIDE = @"sys_guide";
NSString * const BAE_TAG_USER_ALL = @"sys_all";
// 还有各个商品分类。
// 注：商品分类的tag以“gc_”作为前缀
// 注：如果将来增加其他其他类型的tag，均已前缀区分。比如将来如果允许建立讨论组（好友圈子），那么一个圈子就是一个tag，所有的圈子tag都可以以“group_”作为前缀

// 以下为：自定义云推消息类别。以下自定义类别全部通过指定 Channel::MESSAGE_TYPE = 0 来发送百度的消息（而非通知）
// 注：以下定义必须严格和server一致
NSInteger const BAE_CUST_PUSH_MSG_TYPE_WANT_BUY_COME = 1; // 顾客创建了求购
NSInteger const BAE_CUST_PUSH_MSG_TYPE_FIRST_REPLY_COME = 2; // 导购对求购进行了首次回复
NSInteger const BAE_CUST_PUSH_MSG_TYPE_Q_COME = 3; // 顾客提问了
NSInteger const BAE_CUST_PUSH_MSG_TYPE_A_COME = 4; // 导购回复了
NSInteger const BAE_CUST_PUSH_MSG_TYPE_JOIN_NEW_SHOP = 5; // （导购）加入店铺的申请获得新店铺店长审批
NSInteger const BAE_CUST_PUSH_MSG_TYPE_NOTIFY_LOGOUT = 10; // 被迫下线

NSString * const BAE_META_DATA_NAME_API_KEY = @"com.baidu.frontia.api.apikey";// 位于AndroidManifest.xml中百度meta-data的name


#pragma mark DB

NSString * const DB_TABLE_NAME_CITY = @"tsc_city";
NSString * const DB_TABLE_NAME_GOODS_CLASS = @"tsc_goods_class";
NSString * const DB_TABLE_NAME_USER = @"tsc_user";
NSString * const DB_TABLE_NAME_BIZ_NOTICE = @"tsc_biz_notice";
NSString * const DB_TABLE_NAME_RL_BIZ_NOTICE_PIC = @"tsc_rl_biz_notice_pic";
NSString * const DB_TABLE_NAME_SYS_CONFIG = @"tsc_sys_config";
NSString * const DB_TABLE_NAME_RL_MAX_READED_QA = @"tsc_rl_max_readed_qa";
NSString * const DB_TABLE_NAME_MSG = @"tsc_msg";
//
NSString * const DB_SYS_CONFIG_KEY_DB_VERSION_GOODS_CLASS = @"DB_SYS_CONFIG_KEY_DB_VERSION_GOODS_CLASS";
NSString * const DB_SYS_CONFIG_KEY_MAX_SELECTABLE_GOODS_CLASS = @"DB_SYS_CONFIG_KEY_MAX_SELECTABLE_GOODS_CLASS";
NSString * const DB_SYS_CONFIG_KEY_DB_VERSION_CITY = @"DB_SYS_CONFIG_KEY_DB_VERSION_CITY";
//
NSInteger const DB_YES = 1;
NSInteger const DB_NO = 0;
NSInteger const DB_ANY = -1;
//
NSInteger const DB_DIRECTION_PREVIOUS = 1;
NSInteger const DB_DIRECTION_NEXT = 2;
//
NSString * const DB_USER_ROLE = @"DB_USER_ROLE";
NSInteger const DB_USER_ROLE_CUSTOMER = 1;
NSInteger const DB_USER_ROLE_GUIDE = 2;
//
NSInteger const DB_BIZ_TYPE_C_WANT_BUY = 1; // 顾客求购
NSInteger const DB_BIZ_TYPE_G_REPLY = 2; // 导购针对顾客求购的第一条回复
NSInteger const DB_BIZ_TYPE_G_LIMIT_SELL = 3; // 导购发布的限时卖
NSInteger const DB_BIZ_TYPE_G_GOODS_TEMPLATE = 4; // 导购商品模板
NSInteger const DB_BIZ_IS_READ_NO = 0;
NSInteger const DB_BIZ_IS_READ_YSE = 1;
NSInteger const DB_BIZ_STATUS_WANT_BUY_BUYING = 1; // 顾客求购：求购中
NSInteger const DB_BIZ_STATUS_WANT_BUY_DONE = 2; // 顾客求购：交易完了
NSInteger const DB_BIZ_STATUS_WANT_BUY_CANCEL = 3; // 顾客求购：不买了
NSInteger const DB_BIZ_STATUS_LIMIT_SELL_SELLING = 1; // 导购限时卖：正在热卖
NSInteger const DB_BIZ_STATUS_LIMIT_SELL_COMING = 2; // 导购限时卖：敬请期待
NSInteger const DB_BIZ_STATUS_LIMIT_SELL_FINISH = 3; // 导购限时卖：已经结束
NSInteger const DB_BIZ_STATUS_LIMIT_SELL_INVALID = 4; // 导购限时卖：失效
NSInteger const DB_BIZ_STATUS_UNFAVORITE = 1; // 未收藏
NSInteger const DB_BIZ_STATUS_FAVORITED = 2; // 已收藏
NSInteger const DB_BIZ_SCOPE_IN_CITY = 1; // 范围：同城
NSInteger const DB_BIZ_SCOPE_IN_COUNTRY = 2; // 范围：全国
//
NSInteger const DB_CHAT_TYPE_WORD = 1;
NSInteger const DB_CHAT_TYPE_PIC = 2;
//
NSInteger const DB_RATE_RANK_GOOD = 1;// 好评
NSInteger const DB_RATE_RANK_MIDDLE = 2;// 中评
NSInteger const DB_RATE_RANK_BAD = 3;// 差评
//
NSInteger const DB_EMAIL_IS_VALID = 1;// 邮箱有效
NSInteger const DB_EMAIL_IS_NOT_VALID = 0;// 邮箱无效
//
NSInteger const DB_GOODS_CLASS_STATUS_NO_USE = 0; // 废弃
NSInteger const DB_GOODS_CLASS_STATUS_IN_USE = 1; // 正在使用
//
NSInteger const DB_CITY_STATUS_NO_USE = 0; // 废弃
NSInteger const DB_CITY_STATUS_IN_USE = 1; // 正在使用
//
NSInteger const DB_APP_DB_ID_DRAFT = -100; // APP_DB中草稿的id为-100，所有未同步记录的id均小于-100，即从-101开始
NSInteger const DB_TABLE_MAX_ROWS = 1000000000;
//
NSInteger const DB_PATH_OR_URL_PATH = 1; // 商品图片在APP_DB中保存的pic_url中的值，是本地path，还是远程url
NSInteger const DB_PATH_OR_URL_URL = 2; // 商品图片在APP_DB中保存的pic_url中的值，是本地path，还是远程url
// 未读消息类型
NSInteger const DB_MSG_TYPE_CUSTOMER_WANT_BUY = 1;// 来自顾客的求购
NSInteger const DB_MSG_TYPE_GUIDE_FIRST_REPLY = 2; // 来自导购的首次回复（暂不使用）
NSInteger const DB_MSG_TYPE_CUSTOMER_Q_IN_FIRST_REPLY = 11; // 来自顾客的Q--首次回复中
NSInteger const DB_MSG_TYPE_CUSTOMER_Q_IN_LIMIT_SELL = 12; // 来组顾客的Q--限时卖中
NSInteger const DB_MSG_TYPE_GUIDE_A_IN_FIRST_REPLY = 21; // 来自导购的A--首次回复中
NSInteger const DB_MSG_TYPE_GUIDE_A_IN_LIMIT_SELL = 22; // 来自导购的A--限时卖中
//
NSInteger const DB_DB_THIRD_PARTY_TYPE_UNSUPPORT = -1; // 不支持的类型
NSInteger const DB_DB_THIRD_PARTY_TYPE_QQ = 1; // 第三方登陆类型QQ
NSInteger const DB_DB_THIRD_PARTY_TYPE_SINA_WEIBO = 2; // 第三方登陆类型QQ


#pragma mark CONFIG

NSInteger const CONFIG_WELCOME_PAGE_DISPLAY_S = 1; // 显示APP自己的欢迎界面的时间（不包括广告图片的时间）
NSInteger const CONFIG_WELCOME_PAGE_AD_S = 1; // 在欢迎界面显示广告的时间
double const CONFIG_REPLACE_ROOT_VIEW_S = 0.8; // 当在不同vc间切换且需要改变根view时，为不影响切换时的动画，需要等待一段时间再替换根view。在模拟器上的临界值是0.6，小于这个值就会出现vc切换的动画失效
//
NSInteger const CONFIG_MAX_BUY_STAR_NUM = 4; // 顾客首界面最大购物达人数量
NSInteger const CONFIG_NEXT_PAGE_WAIT_S = 1; // 顾客提交后，在当前页面停留一会再返回，给顾客有交互的感觉
NSInteger const CONFIG_DEFAULT_ROWS = 15;
NSInteger const CONFIG_MAX_PHOTO_PICK_NUM = 3;
NSInteger const CONFIG_DEFAULT_OUTLINE_WORD_NUM_10 = 10;
NSInteger const CONFIG_DEFAULT_OUTLINE_WORD_NUM_13 = 13;
NSInteger const CONFIG_DEFAULT_OUTLINE_WORD_NUM_20 = 20;
NSString * const CONFIG_APOSTROPHE = @"...";
NSInteger const CONFIG_MAX_CHAT_ID_PLUS_HOW_MANY = 10000;// 除非在用户更新lv数据之后SER端新增了10000条数据，否则这个值就是合适的
NSInteger const CONFIG_MAX_RWN = 120; // 一般情况下，最大可输入字数
NSInteger const CONFIG_MY_DIALOG_CLOSE_S = 1; // MyDialog在多少毫秒后自动关闭
CGFloat const CONFIG_ANIMATION_DURATION_S = 1.0f; // 动画持续时间（登录界面用户头像+注册界面显示城市）
CGFloat const CONFIG_ANIMATION_DURATION_QUICK_S = 0.3f;
CGFloat const CONFIG_TOAST_IT_S = 2.0; //
//
NSInteger const CONFIG_AUTO_UPDATE_INTERVAL_MS = 604800; // 检查自动更新的时间间隔（一周）


#pragma mark AEKI

NSString * const AEKI_PHOTO_PATH = @"PHOTO_PATH";
NSString * const AEKI_IMG_ID = @"IMG_ID";
NSString * const AEKI_IMG_ID_ARR = @"IMG_ID_ARR";
NSString * const AEKI_IMG_PATH_ARR = @"IMG_PATH_ARR";
NSString * const AEKI_IMG_PATH = @"IMG_PATH";
NSString * const AEKI_IMG_DETAIL_FILE_TYPE = @"IMG_DETAIL_FILE_TYPE";
NSString * const AEKI_IMG_DETAIL_URL = @"IMG_DETAIL_URL";
NSString * const AEKI_IMG_DETAIL_URL_ARR = @"IMG_DETAIL_URL_ARR";
NSString * const AEKI_CURRENT_IMG_INDEX = @"CURRENT_IMG_INDEX"; // 当前显示的图片下标
NSString * const AEKI_BUCKET_ID = @"BUCKET_ID";
NSString * const AEKI_SHOP_ID = @"SHOP_ID";
NSString * const AEKI_SHOP_NAME = @"SHOP_NAME";
NSString * const AEKI_SHOP_MANAGER_ID = @"MANAGER_ID";
NSString * const AEKI_MALL_ID = @"MALL_ID";
NSString * const AEKI_MALL_NAME = @"MALL_NAME";
NSString * const AEKI_USER_ID = @"USER_ID";
NSString * const AEKI_USER_ROLE = @"USER_ROLE";
NSString * const AEKI_CITY_ID = @"CITY_ID";
NSString * const AEKI_CUSTOMER_ID = @"CUSTOMER_ID";
NSString * const AEKI_GUIDE_ID = @"GUIDE_ID";
NSString * const AEKI_IS_MULTI_PICKER = @"IS_MULTI_PICKER";
NSString * const AEKI_MAX_PHOTO_PICK_NUM = @"MAX_PHOTO_PICK_NUM";
NSString * const AEKI_BIZ_NOTICE_ID = @"BIZ_NOTICE_ID";
NSString * const AEKI_BIZ_NOTICE_TYPE = @"BIZ_NOTICE_TYPE";
NSString * const AEKI_UNSYNC_BIZ_ID = @"UNSYNC_BIZ_ID";
NSString * const AEKI_WANT_BUY_ID = @"WANT_BUY_ID";
NSString * const AEKI_FIRST_REPLY_ID = @"FIRST_REPLY_ID";
NSString * const AEKI_LIMIT_SELL_ID = @"LIMIT_SELL_ID";
NSString * const AEKI_BIZ_TEMPLATE_ID = @"BIZ_TEMPLATE_ID";
NSString * const AEKI_QA_ID = @"QA_ID";
NSString * const AEKI_BIZ_NOTICE_INFO = @"BIZ_NOTICE_INFO";
NSString * const AEKI_TITLE = @"TITLE";
NSString * const AEKI_BODY_VIEW_RESOURCE_ID = @"BODY_VIEW_RESOURCE_ID";
NSString * const AEKI_TEXT_SIZE = @"TEXT_SIZE";
NSString * const AEKI_UIIMAGE = @"UIIMAGE";
NSString * const AEKI_EMAIL = @"EMAIL";
NSString * const AEKI_STORY_VERSION = @"STORY_VERSION";
NSString * const AEKI_IS_POP_STORY = @"IS_POP_STORY";


#pragma mark API

// 图片服务器访问地址
NSString * const URL_QINIU_PIC_SERVER_PUB_URL = @"http://7xih5t.com1.z0.glb.clouddn.com";
NSString * const URL_QINIU_PIC_SERVER_SYS_URL = @"http://tscpubsys.qiniudn.com";
NSString * const URL_QQ_PIC_SERVER_URL = @"http://qzapp.qlogo.cn";
NSString * const URL_SINA_PIC_SERVER_URL_1 = @"http://ww4.sinaimg.cn";
NSString * const URL_SINA_PIC_SERVER_URL_2 = @"http://tp1.sinaimg.cn";
NSString * const URL_GET_PIC_SERVER_TOKEN = @"http://sckuaichet.duapp.com/imgser/qntoken";
// 用户相关
NSString * const URL_USER_REGISTER = @"http://sckuaichet.duapp.com/api/user/create";
NSString * const URL_USER_REGISTER2 = @"http://sckuaichet.duapp.com/api/user/create2";
NSString * const URL_USER_LOGIN = @"http://sckuaichet.duapp.com/api/user/login";
NSString * const URL_USER_LOGOUT = @"http://sckuaichet.duapp.com/api/user/logout";
NSString * const URL_USER_LOGIN_THIRD_PARTY = @"http://sckuaichet.duapp.com/api/user/loginThirdParty";
NSString * const URL_USER_BIND_PUSH = @"http://sckuaichet.duapp.com/api/user/bindPush";
NSString * const URL_USER_UPDATE_LAST_LOGIN = @"http://sckuaichet.duapp.com/api/user/updateLastLogin";
NSString * const URL_USER_UPDATE_PIC = @"http://sckuaichet.duapp.com/api/user/updatePic";
NSString * const URL_USER_UPDATE_COVER = @"http://sckuaichet.duapp.com/api/user/updateCover";
NSString * const URL_USER_UPDATE_CITY = @"http://sckuaichet.duapp.com/api/user/updateCity";
NSString * const URL_USER_FEEDBACK = @"http://sckuaichet.duapp.com/api/user/feedback";
// 搜索相关
NSString * const URL_SEARCH_SHOP = @"http://sckuaichet.duapp.com/api/search/shop";
NSString * const URL_SEARCH_MALL = @"http://sckuaichet.duapp.com/api/search/mall";
// 店铺相关
NSString * const URL_SHOP_GET_SPACE_INFO = @"http://sckuaichet.duapp.com/api/shop/getSpaceInfo";
NSString * const URL_SHOP_CREATE = @"http://sckuaichet.duapp.com/api/shop/create";
NSString * const URL_SHOP_UPDATE_PIC = @"http://sckuaichet.duapp.com/api/shop/updatePic";
NSString * const URL_SHOP_UPDATE_LOGO = @"http://sckuaichet.duapp.com/api/shop/updateLogo";
NSString * const URL_SHOP_UPDATE_TEL = @"http://sckuaichet.duapp.com/api/shop/updateTel";
NSString * const URL_SHOP_UPDATE_NAME = @"http://sckuaichet.duapp.com/api/shop/updateName";
NSString * const URL_SHOP_UPDATE_MALL = @"http://sckuaichet.duapp.com/api/shop/updateMall";
NSString * const URL_SHOP_UPDATE_GOODS_CLASS = @"http://sckuaichet.duapp.com/api/shop/updateGoodsClass";
// 用户设置
NSString * const URL_SETTING_NAME = @"http://sckuaichet.duapp.com/api/setting/name";
NSString * const URL_SETTING_TEL = @"http://sckuaichet.duapp.com/api/setting/tel";
NSString * const URL_SETTING_CHANGE_PASSWD = @"http://sckuaichet.duapp.com/api/setting/changePasswd";
NSString * const URL_SETTING_GET_BLACKLIST = @"http://sckuaichet.duapp.com/api/setting/getBlacklist";
NSString * const URL_SETTING_REMOVE_FROM_BLACKLIST = @"http://sckuaichet.duapp.com/api/setting/removeFromBlacklist";
NSString * const URL_SETTING_GET_APP_VSRSION_INFO = @"http://sckuaichet.duapp.com/api/setting/getAppVersionInfo";
NSString * const URL_SETTING_GUIDE_RECEIVE_MSG_IN_COUNTRY = @"http://sckuaichet.duapp.com/api/setting/setGuideReceiveMsgInCountry";
// 忘记密码
NSString * const URL_FORGET_PASSWD_SEND_RESET_PASSWD_EMAIL = @"http://sckuaichet.duapp.com/api/forgetPasswd/sendResetPasswdEmail";
NSString * const URL_FORGET_PASSWD_SEND_VERIFY_EMAIL_EMAIL = @"http://sckuaichet.duapp.com/api/forgetPasswd/sendVerifyEmailEmail";
// 顾客特有
NSString * const URL_CUSTOMER_GET_MAIN_INFO = @"http://sckuaichet.duapp.com/api/customer/getMainInfo";
NSString * const URL_CUSTOMER_GET_SPACE_INFO = @"http://sckuaichet.duapp.com/api/customer/getSpaceInfo";
NSString * const URL_CUSTOMER_LIST_WANT_BUY = @"http://sckuaichet.duapp.com/api/customer/listWantBuy";
NSString * const URL_CUSTOMER_LIST_GUIDE_REPLY_FOR_ONE = @"http://sckuaichet.duapp.com/api/customer/listGuideReplyForOne";
NSString * const URL_CUSTOMER_LIST_UNRATE_FIRST_REPLY = @"http://sckuaichet.duapp.com/api/customer/listUnrateFirstReply";
NSString * const URL_CUSTOMER_LIST_COVER_TEMPLATES = @"http://sckuaichet.duapp.com/api/customer/listCoverTemplates";
NSString * const URL_CUSTOMER_LIST_RATE = @"http://sckuaichet.duapp.com/api/customer/listRate";
NSString * const URL_CUSTOMER_CREATE_WANT_BUY = @"http://sckuaichet.duapp.com/api/customer/createWantBuy";
NSString * const URL_CUSTOMER_CREATE_RATE = @"http://sckuaichet.duapp.com/api/customer/createRate";
NSString * const URL_CUSTOMER_MARK_WANT_BUY_EXPIRE = @"http://sckuaichet.duapp.com/api/customer/markWantBuyExpire";
NSString * const URL_CUSTOMER_MARK_FIRST_REPLY_FAVORITE = @"http://sckuaichet.duapp.com/api/customer/markFirstReplyFavorite";
NSString * const URL_CUSTOMER_MARK_LIMIT_SELL_FAVORITE = @"http://sckuaichet.duapp.com/api/customer/markLimitSellFavorite";
NSString * const URL_CUSTOMER_MARK_BLACKLIST = @"http://sckuaichet.duapp.com/api/customer/markBlacklist";
NSString * const URL_CUSTOMER_FINISH_BUYING = @"http://sckuaichet.duapp.com/api/customer/finishBuying";
// 导购特有
NSString * const URL_GUIDE_GET_MAIN_INFO = @"http://sckuaichet.duapp.com/api/guide/getMainInfo";
NSString * const URL_GUIDE_GET_SPACE_INFO = @"http://sckuaichet.duapp.com/api/guide/getSpaceInfo";
NSString * const URL_GUIDE_GET_BIZ_TEMPLATE = @"http://sckuaichet.duapp.com/api/guide/getBizTemplate";
NSString * const URL_GUIDE_LIST_FIRST_REPLY = @"http://sckuaichet.duapp.com/api/guide/listFirstReply";
NSString * const URL_GUIDE_LIST_BIZ_TEMPLATE = @"http://sckuaichet.duapp.com/api/guide/listBizTemplate";
NSString * const URL_GUIDE_LIST_ACHIEVEMENT = @"http://sckuaichet.duapp.com/api/guide/listAchievement";
NSString * const URL_GUIDE_LIST_WAIT_JOIN_GUIDE_MEMBER = @"http://sckuaichet.duapp.com/api/guide/listWaitJoinGuideMember";
NSString * const URL_GUIDE_CREATE_FIRST_REPLY = @"http://sckuaichet.duapp.com/api/guide/createFirstReply";
NSString * const URL_GUIDE_CREATE_LIMIT_SELL = @"http://sckuaichet.duapp.com/api/guide/createLimitSell";
NSString * const URL_GUIDE_CREATE_BIZ_TEMPLATE = @"http://sckuaichet.duapp.com/api/guide/createBizTemplate";
NSString * const URL_GUIDE_DELETE_BIZ_TEMPLATE = @"http://sckuaichet.duapp.com/api/guide/deleteBizTemplate";
NSString * const URL_GUIDE_CHECK_STATUS = @"http://sckuaichet.duapp.com/api/guide/checkStatus";
NSString * const URL_GUIDE_UPDATE_SHOP = @"http://sckuaichet.duapp.com/api/guide/updateShop";
NSString * const URL_GUIDE_UPDATE_BIZ_TEMPLATE = @"http://sckuaichet.duapp.com/api/guide/updateBizTemplate";
NSString * const URL_GUIDE_AGREE_SHOP_MEMBER_JOIN = @"http://sckuaichet.duapp.com/api/guide/agreeShopMemberJoin";
NSString * const URL_GUIDE_MARK_LIMIT_SELL_INVALID = @"http://sckuaichet.duapp.com/api/guide/markLimitSellInvalid";
NSString * const URL_GUIDE_CAN_SEE_ALL_LIMIT_SELL = @"http://sckuaichet.duapp.com/api/guide/canSeeAllLimitSell";
// 顾客/导购共有获得
NSString * const URL_GET_APP_INIT_DATA = @"http://sckuaichet.duapp.com/api/get/appInitData";
NSString * const URL_GET_USER_INFO_MIN = @"http://sckuaichet.duapp.com/api/get/userInfoMin";
NSString * const URL_GET_USER_LEVEL_INFO = @"http://sckuaichet.duapp.com/api/get/userLevelInfo";
NSString * const URL_GET_USER_CITY_ID = @"http://sckuaichet.duapp.com/api/get/userCityId";
NSString * const URL_GET_GUIDE_INFO_MIN = @"http://sckuaichet.duapp.com/api/get/guideInfoMin";
NSString * const URL_GET_GUIDE_GC_IDS = @"http://sckuaichet.duapp.com/api/get/guideGCIds";
NSString * const URL_GET_CITY_INFO_MIN = @"http://sckuaichet.duapp.com/api/get/cityInfoMin";
NSString * const URL_GET_MALL_INFO_MIN = @"http://sckuaichet.duapp.com/api/get/mallInfoMin";
NSString * const URL_GET_SHOP_INFO_MIN = @"http://sckuaichet.duapp.com/api/get/shopInfoMin";
NSString * const URL_GET_WANT_BUY = @"http://sckuaichet.duapp.com/api/get/wantBuy";
NSString * const URL_GET_FIRST_REPLY = @"http://sckuaichet.duapp.com/api/get/firstReply";
NSString * const URL_GET_LIMIT_SELL = @"http://sckuaichet.duapp.com/api/get/limitSell";
NSString * const URL_GET_QA = @"http://sckuaichet.duapp.com/api/get/qa";
NSString * const URL_GET_CHAT = @"http://sckuaichet.duapp.com/api/get/chat";
NSString * const URL_GET_LIMIT_SELL_LIST = @"http://sckuaichet.duapp.com/api/get/limitSellList";
NSString * const URL_GET_LIMIT_SELL_LIST_1 = @"http://sckuaichet.duapp.com/api/get/limitSellList1";
NSString * const URL_GET_LIMIT_SELL_LIST_2 = @"http://sckuaichet.duapp.com/api/get/limitSellList2";
NSString * const URL_GET_SHOP_IN_MALL_LIST = @"http://sckuaichet.duapp.com/api/get/shopInMallList";
NSString * const URL_GET_QA_LIST = @"http://sckuaichet.duapp.com/api/get/qaList";
NSString * const URL_GET_RATE_LIST = @"http://sckuaichet.duapp.com/api/get/rateList";
NSString * const URL_GET_GUIDE_RANKING_LIST = @"http://sckuaichet.duapp.com/api/get/guideRankingList";
NSString * const URL_GET_BIZ_NOTICE_ALL_PICS = @"http://sckuaichet.duapp.com/api/get/bizNoticeAllPics";
// 其他
NSString * const URL_CREATE_CHAT = @"http://sckuaichet.duapp.com/api/chat/create";
NSString * const URL_CREATE_QA = @"http://sckuaichet.duapp.com/api/qa/create";
NSString * const URL_APPLY_MALL = @"http://sckuaichet.duapp.com/api/mall/apply";
NSString * const URL_SINA_WEIBO_REDIRECT_URI = @"http://taoshangchang.duapp.com/api/user/loginThirtyPartySinaWeibo"; // Mob三方登录，新浪微博回调URI
// 以下常量，需要和Server端保持一致
// 匹配类型
NSInteger const URL_MATCH_TYPE_PREFIX = 1;
NSInteger const URL_MATCH_TYPE_ANY = 2;


#pragma mark 网络相关

NSInteger const HTTP_TIMEOUT_INTERVAL_POST = 15;


#pragma mark 其他

NSInteger const O_ENCODING = NSUTF8StringEncoding;


#pragma mark UI资源名称

NSString * const UI_STORYBOARD_NAME_MAIN = @"Main"; // 主Storyboard名称
NSString * const UI_VC_NAME_WELCOME = @"Welcome";
NSString * const UI_VC_NAME_LOGIN = @"Login";
NSString * const UI_VC_NAME_REG2_WELCOME = @"Reg2Welcome";
NSString * const UI_VC_NAME_REG2_SELECT_ROLE = @"Reg2SelectRole";
NSString * const UI_VC_NAME_REG2_SELECT_CITY = @"Reg2SelectCity";
NSString * const UI_VC_NAME_REG2_GATHER_INFO_GUIDE = @"Reg2GatherInfoGuide";
NSString * const UI_VC_NAME_REG2_SEARCH_SHOP = @"Reg2SearchShop";
NSString * const UI_VC_NAME_SELECT_SHOP = @"SelectShop";
NSString * const UI_VC_NAME_CREATE_SHOP_GATHER_INFO = @"CreateShopGatherInfo";
NSString * const UI_VC_NAME_CREATE_SHOP_SEARCH_MALL = @"CreateShopSearchMall";
NSString * const UI_VC_NAME_SELECT_MALL = @"SelectMall";
NSString * const UI_VC_NAME_APPLY_CREATE_MALL = @"ApplyCreateMall";
NSString * const UI_VC_NAME_STORY = @"Story";
NSString * const UI_VC_NAME_STORY_PAGE = @"StoryPage";
NSString * const UI_VC_NAME_CUSTOMER_MAIN = @"CustomerMain";
NSString * const UI_VC_NAME_GUIDE_MAIN = @"GuideMain";
NSString * const UI_VC_NAME_CUSTOMER_SPACE = @"CustomerSpace";
NSString * const UI_VC_NAME_GUIDE_SPACE = @"GuideSpace";
NSString * const UI_VC_NAME_FORGET_PASSWD = @"ForgetPasswd";
NSString * const UI_VC_NAME_FORGET_2_EMAIL_NOT_EXIST = @"Forget2EmailNotExist";
NSString * const UI_VC_NAME_FORGET_3_RESEND_VERI_EMAIL = @"Forget3ResendVeriEmail";
NSString * const UI_VC_NAME_FORGET_4_RESEND_VERI_EMAIL_SUCCESSFUL = @"Forget4ResendVeriEmailSuccessful";
NSString * const UI_VC_NAME_FORGET_5_RESEND_VERI_EMAIL_NOT_RECEIVED = @"Forget5ResendVeriEmailNotReceived";
NSString * const UI_VC_NAME_FORGET_6_RESET_PASSWD_VERI_EMAIL_SENDED = @"Forget6ResetPasswdVeriEmailSended";
NSString * const UI_VC_NAME_REGISTER = @"Register";
NSString * const UI_VC_NAME_PHOTO_EDITOR = @"PhotoEditor";
NSString * const UI_VC_NAME_GUIDE_APPROVE = @"GuideApprove";
NSString * const UI_VC_NAME_ABOUT = @"About";
NSString * const UI_VC_NAME_SETTING = @"Setting";
NSString * const UI_VC_NAME_FEEDBACK = @"Feedback";
NSString * const UI_VC_NAME_CUSTOMER_WANT_BUY_C = @"CustomerWantBuyC";
NSString * const UI_VC_NAME_CUSTOMER_WANT_BUY_R = @"CustomerWantBuyR";
NSString * const UI_VC_NAME_GUIDE_BIZ_LIST = @"GuideBizList";
NSString * const UI_VC_NAME_GUIDE_BIZ_LIST_PAGE = @"GuideBizListPage";
NSString * const UI_VC_NAME_REPLY_QA = @"ReplyQA";


#pragma mark 消息中心

NSString * const NOTIFICATION_NAME_UNREAD_MSG_PREFIX = @"content://tsc/unread_msg";
NSString * const NOTIFICATION_NAME_UNREAD_MSG_COME = @"content://tsc/unread_msg/come";
NSString * const NOTIFICATION_NAME_UNREAD_MSG_DELETED = @"content://tsc/unread_msg/deleted";
NSString * const NOTIFICATION_NAME_UNREAD_MSG_UPDATED = @"content://tsc/unread_msg/updated";

NSString * const NOTIFICATION_NAME_UNSYNC_WANT_BUY_PREFIX = @"content://tsc/unsync_want_buy";
NSString * const NOTIFICATION_NAME_UNSYNC_WANT_BUY_CREATED = @"content://tsc/unsync_want_buy/created";
NSString * const NOTIFICATION_NAME_UNSYNC_WANT_BUY_DELETED = @"content://tsc/unsync_want_buy/deleted";

NSString * const NOTIFICATION_NAME_UNSYNC_FIRST_REPLY_PREFIX = @"content://tsc/unsync_first_reply";
NSString * const NOTIFICATION_NAME_UNSYNC_FIRST_REPLY_CREATED = @"content://tsc/unsync_first_reply/created";
NSString * const NOTIFICATION_NAME_UNSYNC_FIRST_REPLY_DELETED = @"content://tsc/unsync_first_reply/deleted";

NSString * const NOTIFICATION_NAME_UNSYNC_LIMIT_SELL_PREFIX = @"content://tsc/unsync_limit_sell";
NSString * const NOTIFICATION_NAME_UNSYNC_LIMIT_SELL_CREATED = @"content://tsc/unsync_limit_sell/created";
NSString * const NOTIFICATION_NAME_UNSYNC_LIMIT_SELL_DELETED = @"content://tsc/unsync_limit_sell/deleted";

NSString * const NOTIFICATION_NAME_UNSYNC_BIZ_TEMPLATE_PREFIX = @"content://tsc/unsync_biz_template";
NSString * const NOTIFICATION_NAME_UNSYNC_BIZ_TEMPLATE_CREATED = @"content://tsc/unsync_biz_template/created";
NSString * const NOTIFICATION_NAME_UNSYNC_BIZ_TEMPLATE_DELETED = @"content://tsc/unsync_biz_template/deleted";

#pragma mark 密钥/密码
// 注：别忘了修改Tsc_IOS-Info.plist

// ShareSDK
NSString * const PASSWD_SHARE_SDK_APP_KEY = @"a507eeb4904f";
// qq空间
// 注：1103586261 / aed9b0303e3ed1e27bae87c33761161d，是旧账号
NSString * const PASSWD_QZONE_APP_KEY = @"1104166273";
NSString * const PASSWD_QZONE_APP_SECRET = @"z7w7AtXF6uXuuuxL";
// 新浪微博
NSString * const PASSWD_SINA_WEIBO_APP_KEY = @"733636992";
NSString * const PASSWD_SINA_WEIBO_APP_SECRET = @"576ffc2ef88a73074bd91e0861f2b837";
// Parse
NSString * const PASSWD_PARSE_APPLICATION_ID = @"Ung884siOwnUnfozpYYvh3nxVdO8xxQrqTRjZA0q";
NSString * const PASSWD_PARSE_CLIENT_KEY = @"DXTwequeCPwZ5TOVkIe73WDWhDaFKWsQd2sCEodS";


@implementation TSCConstants {}
@end
